package br.com.rafsoft.mapaentrega.shared;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.ServiceName;

@ServiceName("br.com.rafsoft.mapaentrega.server.MapaEntregaService")
public interface TaskRequest extends RequestContext {

	Request<TaskProxy> createTask();

	Request<TaskProxy> readTask(Long id);

	Request<TaskProxy> updateTask(TaskProxy task);

	Request<Void> deleteTask(TaskProxy task);

	Request<List<TaskProxy>> queryTasks();
	
	Request<List<TaskProxy>> queryTasksUser(String user);
	
	Request<Void> updateTaskStatus(Long idTask, int status, String text);

}
